package cn.springcloudandalibaba.vo;

import cn.springcloudandalibaba.base.IBaseResult;

public enum ResultCode implements IBaseResult {
    SUCCESS,
    FAILED(500, "操作失败");
    private int code;
    private String message;
    private  boolean success;
    ResultCode(){
       this.success=true;
    }
     ResultCode(int code, String message) {
        this.code = code;
       this.success=false;
        this.message = message;
    }

    public boolean getSuccess() {
        return success;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}